package com.hr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

/**
 * 功能/权限表(Functions)实体类
 *
 * @author makejava
 * @since 2022-04-28 14:46:34
 */
@TableName("functions")
public class Functions implements Serializable {
    /**
     * 功能/权限ID
     */
    @TableId(type = IdType.AUTO,value = "f_id")
    private Integer fid;
    /**
     * 功能/权限名称
     */
    @TableField("f_name")
    private String fname;
    /**
     * 功能的url
     */
    @TableField("f_url")
    private String furl;
    /**
     * 功能/权限类型(1:文件夹 2:文档-链接一个地址)
     */
    @TableField("f_type")
    private Integer ftype;
    /**
     * 功能/权限 父ID
     */
    private Integer parentId;
    /**
     * 儿子权限列表
     */
    @TableField(exist = false)
    private List<Functions> children;

    public Integer getFid() {
        return fid;
    }

    public List<Functions> getChildren() {
        return children;
    }

    public void setChildren(List<Functions> children) {
        this.children = children;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFurl() {
        return furl;
    }

    public void setFurl(String furl) {
        this.furl = furl;
    }

    public Integer getFtype() {
        return ftype;
    }

    public void setFtype(Integer ftype) {
        this.ftype = ftype;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

}

